<template>
	<view style="height: 110rpx;">
		<view class="bot-tabbar">
			<view class="bot-tabbar__item" :data-url="`/pagesExt/business/index?id=${business.id}`" @click="goto">
				<view class="bot-tabbar__icon">
					<image src="../../static/images/home.png" mode="aspectFit"></image>
				</view>
				<view class="bot-tabbar__name">首页</view>
			</view>
			<view class="bot-tabbar__item" :data-url="`tel:${business.tel}`" @click="goto">
				<view class="bot-tabbar__icon">
					<image src="../../static/images/tel2.png" mode="aspectFit"></image>
				</view>
				<view class="bot-tabbar__name">电话</view>
			</view>
			<view class="bot-tabbar__item" :data-url="`location::${business.address}|${business.longitude},${business.latitude}`" @click="goto">
				<view class="bot-tabbar__icon">
					<image src="../../static/images/location.png" mode="aspectFit"></image>
				</view>
				<view class="bot-tabbar__name">导航</view>
			</view>
			<button class="bot-tabbar__item" open-type="share">
				<view class="bot-tabbar__icon">
					<image src="../../static/images/share.png" mode="aspectFit"></image>
				</view>
				<view class="bot-tabbar__name">分享</view>
			</button>
			<view class="bot-tabbar__item" :data-url="`/pages/maidan/pay?bid=${business.id}`" @click="goto">
				<view class="bot-tabbar__icon">
					<image src="../../static/images/maidan.png" mode="aspectFit"></image>
				</view>
				<view class="bot-tabbar__name">买单</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		props: {
			business: Object,
		},
		data() {
			return {
			}
		}
	}
</script>

<style lang="scss" scoped>
	.bot-tabbar {
		position: fixed;
		display: flex;
		align-items: center;
		flex-direction: row;
		width: 100%;
		height: 110rpx;
		bottom: 0;
		background: rgba(#111, 0.6);
		font-size: 24rpx;
		color: #999;
		border-top: 1px solid #efefef;
		z-index: 999999;
		box-sizing: content-box;
		&__item {
			flex: 1;
			text-align: center;
			overflow: hidden;
			align-items: center;
		}
		&__icon {
			height: 54rpx;
			display: flex;
			align-items: center;
			justify-content: center;
			margin-bottom: 4rpx;
			image {
				width: 48rpx;
				height: 48rpx;
			}
		}
		&__name {
			line-height: 30rpx;
			font-size: 26rpx;
			color: #fff;
			font-weight: bold;
		}
	}
</style>